package com.ziyucoding.springboot.labs.lab7.shardingjdbc.readwrite.dataobject;

import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 订单 DO
 *
 * @author ziyucoding
 * @date 2022-10-31
 **/
@TableName(value = "orders")
public class OrderDO {

    /**
     * 订单号
     */
    private Long id;

    /**
     * 用户ID
     */
    private Integer userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "OrderDO{" +
                "id=" + id +
                ", userId=" + userId +
                '}';
    }
}
